CommonEvent 258
Name = "Race Change: (Reverse) Demi-Human→Human"

  999([0])
  ControlVariables([11, 11, 0, 3, 0, 215, 0])
  ControlVariables([12, 12, 0, 3, 0, 236, 0])
  ShowTextAttributes(["stein_fc2", 1, 0, 2])
  ShowText(["\\n<Promestein>If you wish to become a human, I'll need to make some Hakunen Extract™ R. I'll require 2 oni horns and 2 spirit crystals."])
  ShowText([""])
  ShowText([""])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["\\ii[215] (Have:\\V[11])"])
  ShowText(["\\ii[236] (Have:\\V[12])"])
  ShowText(["Consume these items and transform a demi-human into a human?"])
  ShowChoices([["Yes", "No"], 2])
  When([0, "はい"])
    ConditionalBranch([1, 11, 0, 2, 1])
      ConditionalBranch([1, 12, 0, 2, 1])
        ShowTextAttributes(["stein_fc2", 1, 0, 2])
        ShowText(["\\n<Promestein>Excellent, now who will I be administering the Hakunen Extract™ R to? They must have 10 levels in the demi-human race for me to administer it."])
        ShowText([""])
        ShowText([""])
        Script(["names = party_members.collect{|m|m.name}"])
        ScriptMore(["unlimited_choices(11, names)"])
        ScriptMore(["if $game_variables[11] != names.size"])
        ScriptMore(["actor = party_members[$game_variables[11]]"])
        ScriptMore(["$game_variables[12] = actor.id"])
        ScriptMore(["else"])
        ScriptMore(["$game_variables[12] = 0"])
        ScriptMore(["end"])
        ConditionalBranch([1, 12, 0, 0, 0])
          CallCommonEvent([231])
          ExitEventProcessing([])
          Empty([])

        BranchEnd([])
        ConditionalBranch([12, "actor_class_level_over?(v(12), 167, 10)"])
          ConditionalBranch([12, "actor_class_level_over?(v(12), 151, 1)"])
            ShowTextAttributes(["stein_fc2", 2, 0, 2])
            ShowText(["\\n<Promestein>It seems you already possess human DNA.\nSorry, but I can't give you the shot..."])
            ShowText([""])
            ShowText([""])
            CallCommonEvent([231])
            ExitEventProcessing([])
            Empty([])

          BranchEnd([])
          ShowTextAttributes(["stein_fc2", 1, 0, 2])
          ShowText(["\\n<Promestein>All right, let's do this! Hold out your arm for me, please...!"])
          ShowText([""])
          ChangeItems([215, 1, 0, 2])
          ChangeItems([236, 1, 0, 2])
          Script(["set_class_level(v(12), 151, 1, true, true)"])
          PlaySE(["RPG::SE(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
          ShowTextAttributes(["", 0, 0, 2])
          ShowText(["Changed race into human!"])
          ShowTextAttributes(["stein_fc2", 1, 0, 2])
          ShowText(["\\n<Promestein>Fufufu, another great success!"])
          ShowText([""])
          CallCommonEvent([231])
          ExitEventProcessing([])
          Empty([])

        BranchEnd([])
        ShowTextAttributes(["stein_fc2", 2, 0, 2])
        ShowText(["\\n<Promestein>Hmmm? It seems you haven't reached level 10 in the demi-human race. You'd probably die, so I'm afraid I can't give you this shot..."])
        ShowText([""])
        ShowText([""])
        CallCommonEvent([231])
        ExitEventProcessing([])
        Empty([])

      BranchEnd([])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["stein_fc2", 2, 0, 2])
    ShowText(["\\n<Promestein>Oh... it seems you're lacking the required ingredients. My apologies, but I can't create the extract without them."])
    ShowText([""])
    ShowText([""])
    CallCommonEvent([231])
    ExitEventProcessing([])
    Empty([])

  When([1, "いいえ"])
    CallCommonEvent([231])
    ExitEventProcessing([])
    Empty([])

  ChoicesEnd([])
  Empty([])
